package com.ch.light.web.service;


import com.ch.light.mybatis.ParamFilter;
import com.ch.light.web.model.Role;

import java.util.List;

public interface RoleService{

    void add(Role role);

    void delete(List<String> roleIds);

    void update(Role role);

    List<Role> getList(ParamFilter param);

    Role getByRoleId(String roleId);

    Role findByCode(String code);

    List<Role> findByStatus(String status);

    List<Role> findByUserId(String userId);

    int removeAssignMenuByRoleId(String roleId);

    void assignMenus(String roleId, List<String> menuIdList);

    void reassignMenus(String roleId, List<String> menuIdList);
}
